﻿using System;
using System.ServiceModel;
using FlickrSL.Data;
using SilverlightRestServices.Description;

namespace FlickrSL
{
    public partial interface Flickr
    {
        [OperationContract(AsyncPattern = true)]
        [RestGet("services/rest/?method=flickr.test.echo&{0}")]
        IAsyncResult BeginTest_Echo(EchoParameterCollection parameters, AsyncCallback callback, Object state);

        FlickrResponse<EchoResponse> EndTest_Echo(IAsyncResult result);

        [OperationContract(AsyncPattern = true)]
        [RestGet("services/rest/?method=flickr.test.login")]
        IAsyncResult BeginTest_Login(AsyncCallback callback, Object state);

        FlickrResponse<LoginUser> EndTest_Login(IAsyncResult result);
    }
}
